package com.hb.study.jdk;

/**
 * 测试用的实体类
 *
 * @author Mr.Huang
 * @version v0.1, TestEntity.java, 2020/5/14 10:32, create by huangbiao.
 */
public class TestEntity implements Cloneable {

    /**
     * id
     */
    private Integer id;

    /**
     * name
     */
    private String name;

    public TestEntity(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "TestEntity{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

}

    